package util;

public class BoundChecker {
	private int width;
	private int height;
	
	public BoundChecker(int width, int height){
		this.width = width;
		this.height = height;
	}
	
	public boolean check(int x, int y){
		if(x < 0 || y < 0)
			return false;
		if(x > width || y > height)
			return false;
		return true;
	}
}
